import request from '@/utils/request'

// 查询器材信息
export function listEquipment(query) {
  return request({
    url: '/equipment/listEquipment',
    method: 'get',
    params: query
  })
}

// 查询器材信息
export function listvenueManagementByVenueId(data) {
  const { venueUniqueIdentifier } = data;
  return request({
    url: '/equipment/listvenueManagementByVenueId',
    method: 'get',
    params: {
      venueUniqueIdentifier: venueUniqueIdentifier
    }
  })
}
// 状态修改
export function editEmentDisplay(ementId, display) {
    const data = {
        ementId,
        display
    }
    return request({
      url: '/equipment/editEmentDisplay',
      method: 'put',
      data: data
    })
  }
  // 删除
  export function removeEmentById(ementId) {
    return request({
      url: '/equipment/removeEmentById/' + ementId,
      method: 'delete'
    })
  }
  //修改
  export function editEquipement(data) {
    return request({
      url: '/equipment/editEquipement',
      method: 'put',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: data
    })
  }
  //添加
  export function addEquipement(data){
    return request({
      url: '/equipment/addEquipment',
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: data
    })
  }

